package GO_BACK;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        Gun m416 = new Gun("M416",25,0);
        Player policeman = new Player("Mr S",m416);
        Player badman = new Player("大屌",null);

        while (badman.getHp()>0){

            System.out.println(policeman.getName()+"拿着"+policeman.getGun().getModel()+"问"+badman.getName()+"Do you want to go die?" );
            Thread.sleep(1000);
            System.out.println(badman.getName()+"说:俺死都不投降");
            Thread.sleep(1000);
            policeman.getGun().addBullets(30);
            policeman.fire(policeman);
            policeman.getGun().shoot();
            badman.hurt(m416);
            Thread.sleep(1000);
            System.out.println();
        }

    }
}
